package src.lab02.test01.test05;

public class Cube {

    double length ;
    double wide ;
    double high ;
    double cube;

    public Cube() {

    }

    public Cube(double length, double wide, double high) {
        this.length = length;
        this.wide = wide;
        this.high = high;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWide() {
        return wide;
    }

    public void setwide(double wide
    ) {
        this.wide = wide;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high
    ) {
        this.high = high;
    }

    double cube() {
        cube = length * wide * high;
        return cube;
    }

}

//5、 表示一个立方体的长、宽和高，再定义一个方法对这三个变量进行初始化，然后定义一个方法求立方体的体积。创建一个对象，求给定尺寸的立方体的体积。